package com.yap.mvc;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 *
 * @author tadiwa
 */
public class ManagerUtils {

    public static String getUsername() {
        String username;
        Subject subject = SecurityUtils.getSubject();
        username = subject.getPrincipal().toString();
        return username;
    }
}
